#define  _CRT_SECURE_NO_WARNINGS 1
#include<vector>
#include"vector.h"
//void test()
//{
//	gpy::vector<int> v;
//	v.push_back(2);
//	v.push_back(3);
//	v.push_back(4);
//	v.push_back(5);
//	gpy::vector<int>::iterator it = v.begin();
//	while (it !=v.end())
//	{
//		cout << *it << " ";
//		++it;
//	}
//	cout << endl;
//	v.pop_back();
//	for (auto e : v)
//	{
//		cout << e << " ";
//	}
//	cout << endl;
//}
void test1()
{
	gpy::vector<int> v;
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	//gpy::vector<int> v1(v);
	//for (auto e : v1)
	//{
	//	cout << e << " ";
	//}
	//cout << endl;
	//v.push_back(0);
	//v.pop_back();
	gpy::vector<int>::iterator pos = find(v.begin(), v.end(), 3);
	if (pos != v.end())
	{
		v.insert(pos,10);
	}
	*pos = 100;
	for (auto e : v)
	{
		cout << e << " ";
	}
	cout << endl;
}



int main()
{
   /*test2();*/
  //std::vector<int> v2;
  //v2.push_back(2);
  //v2.push_back(3);
  //v2.push_back(4);
  //v2.push_back(5);
 /* std::vector<int> ::iterator pos = find(v2.begin(),v2.end(),3);
  if (pos != v2.end())
  {
	  pos = v2.insert(pos, 30);
  }
  for (auto e : v2)
  {
	  cout << e << " ";
  }
  cout << endl;
  *pos = 100;
  for (auto e : v2)
  {
	  cout << e << " ";
  }
  cout << endl;*/
	return 0;

}